import req from '../fetch/index.js'

const config = {
    // 新增商品分类
addGoodClass: {
        url: '/pc/goodClass/addGoodClass',
    method:'post'
  },
  // 查询分类列表
  getlistGoodClass: {
    url: '/pc/goodClass/listGoodClass',
    method:'post'
  },
  // 删除分类
deleteGoodClass:{
  url: '/pc/goodClass/deleteGoodClass',
    method:'post'
  },
  // 查询分类
getGoodClass: {
  url: '/pc/goodClass/getGoodClass',
  method:'post'
  },
  // 修改分类
updateGoodClass: {
  url: '/pc/goodClass/updateGoodClass',
  method:'post'
  }

}
const request = function (funcName, requestParam) {
  return req(config[funcName].url, config[funcName].method, requestParam, {}, config[funcName].fileConfig)
}
export default request
